﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Liang.KIAPP.Device
{
    /// <summary>
    /// 抓拍事件
    /// </summary>
    /// <param name="e"></param>
    public delegate void CaptureHandler(CaptureImageDataArgs e);

    /// <summary>
    /// 摄像头抓拍
    /// </summary>
    public interface ICameraCapture
    {
        /// <summary>
        /// 初始化抓拍
        /// </summary>
        /// <returns></returns>
        void Init();

        /// <summary>
        /// 清理关闭
        /// </summary>
        void Cleanup();

        /// <summary>
        /// 抓拍事件
        /// </summary>
        event CaptureHandler CaptureEvent;
    }

    /// <summary>
    /// 抓拍数据
    /// </summary>
    public class CaptureImageDataArgs
    {
        /// <summary>
        /// 抓拍摄像头id
        /// </summary>
        public string CameraId { get; set; }

        /// <summary>
        /// 抓拍时间
        /// </summary>
        public DateTime CaptureTime { get; set; }

        /// <summary>
        /// 车牌
        /// </summary>
        public string Plate { get; set; }

        /// <summary>
        /// 车牌颜色
        /// </summary>
        public string PlateColor { get; set; }

        /// <summary>
        /// 车道号
        /// </summary>
        public int RoadNo { get; set; }

        /// <summary>
        /// 连拍序号
        /// </summary>
        public int PicNumber { get; set; }

        /// <summary>
        /// 图片文件
        /// </summary>
        public string ImageFile { get; set; }
    }
}
